import request from '@/utils/request'

export function oauthTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/oauth/table`,
    method: 'post',
    data: query
  })
}

export function oauthLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/oauth/load`,
    method: 'get',
    params: query
  })
}

export function oauthSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/oauth/save`,
    method: 'post',
    data: query
  })
}

export function oauthDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/oauth/delete`,
    method: 'post',
    data: query
  })
}
